// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'ProductStockInAccountId',
        footer: "Foots",
        cnName: '产成品成本核算表',
        name: 'ProductStockInAccount',
        newTabEdit: false,
        url: "/ProductStockInAccount/",
        sortName: "ProductStockInAccountId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {};
    const editFormOptions = [];
    const searchFormFields = {};
    const searchFormOptions = [];
    const columns = [{field:'ProductStockInAccountId',title:'产成品入库核算标识',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'ParentTaskId',title:'父级生产任务单',type:'int',bind:{ key:'生产任务单级联',data:[]},width:80,require:true,align:'left'},
                       {field:'ProductTaskId',title:'生产任务单',type:'int',bind:{ key:'生产任务单编号',data:[]},width:110,require:true,align:'left'},
                       {field:'PeriodYear',title:'会计年度',type:'int',width:110,require:true,align:'left'},
                       {field:'PeriodMonth',title:'会计期间',type:'int',width:110,require:true,align:'left'},
                       {field:'MaterialId',title:'产品标识',type:'int',width:110,require:true,align:'left'},
                       {field:'MaterialName',title:'产品名称',type:'string',width:180,require:true,align:'left'},
                       {field:'Spec',title:'规格型号',type:'string',width:180,align:'left'},
                       {field:'PlanQty',title:'计划生产数量',type:'decimal',width:110,require:true,align:'left'},
                       {field:'WorkHourAccount',title:'本期投入工时',type:'decimal',width:110,require:true,align:'left'},
                       {field:'PeriodQty',title:'本期投入数量',type:'decimal',width:110,require:true,align:'left'},
                       {field:'StockInQty',title:'本期入库数量',type:'decimal',width:110,require:true,align:'left'},
                       {field:'StockInMaterialAmount',title:'本期入库成本',type:'decimal',width:110,require:true,align:'left'},
                       {field:'DepartmentId',title:'部门',type:'guid',bind:{ key:'部门级联',data:[]},width:80,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}